Represents a color.
More...
|
unsigned char | _r |
| The red component of the color, [0, 255].
|
|
unsigned char | _g |
| The green component of the color, [0, 255].
|
|
unsigned char | _b |
| The blue component of the color, [0, 255].
|
|
◆ Color() [1/2]
nkWinUi::Color::Color |
( |
| ) |
|
◆ Color() [2/2]
nkWinUi::Color::Color |
( |
unsigned char |
red, |
|
|
unsigned char |
green, |
|
|
unsigned char |
blue |
|
) |
| |
Constructor.
- Parameters
-
red | The red component of the color. |
green | The green component of the color. |
blue | The blue component of the color. |
◆ ~Color()
nkWinUi::Color::~Color |
( |
| ) |
|
◆ getAssociateColor()
Color nkWinUi::Color::getAssociateColor |
( |
float |
factor = 1.5f | ) |
const |
Returns the "associate" color.
- Parameters
-
factor | The factor to apply to this color. |
- Returns
- The "associate" color, after application of the factor.
◆ mix()
Color nkWinUi::Color::mix |
( |
const Color & |
other, |
|
|
float |
factor |
|
) |
| const |
Mixes with another color.
- Parameters
-
other | The color to mix with. |
factor | The factor, [0.f, 1.f], between this color (0.f) and the other one (1.f). |
- Returns
- The color mix requested.
◆ getColorForDepth()
Color nkWinUi::Color::getColorForDepth |
( |
unsigned int |
depth | ) |
const |
Automatically creates the color associated to the color, to give a sense of "depth" within the interface.
- Parameters
-
depth | The depth that should be associated to the color returned. Currently, between [0, 10]. |
- Returns
- The color expressed for given depth.
◆ operator*()
Color nkWinUi::Color::operator* |
( |
float |
factor | ) |
const |
Overridden operator for fast scalar application.
- Parameters
-
factor | The factor to multiply with. |
- Returns
- The color with all of its component multiplied by the factor.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsWinUi/Themes/Color.h